package com.example.demo.bean;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Menus {

    @ExcelIgnore
    private int id;

    @ExcelProperty("PERM_ID")
    private int perm_id;

    @ExcelProperty("PERM_NAME")
    private String perm_name;

    @ExcelProperty("PERM_LEVEL")
    private int perm_level;

    @ExcelProperty("UP_PERM_ID")
    private int up_perm_id;

    @ExcelIgnore
    private List<Menus> list = new ArrayList<>();
}
